<?php
    
    $servern="localhost";
   $coninfo=array("Database"=>"CNZZ_new","UID"=>"sa","PWD"=>"1111");
   $conn=sqlsrv_connect($servern,$coninfo); //or die ("连接失败!");
   if($conn){
	   echo "sql数据库连接成功！<br>";
   }else{
	   echo "连接失败！<br>";
   }
   
   $table_name = "CNZZWZ";
	/*如果你的数据库表名是中文，记得加上这句：*/
	//$table_name = iconv("UTF-8", "GB2312", "中文表名");
	/*query语句：*/
	$rs=sqlsrv_query($conn, "select top 15 * from ".$table_name);

